<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page session="false" %>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="/resource/common_html_meat.jsp" %>
    <%@ include file="/manage/system/common.jsp" %>
    <%@ include file="/resource/common_html_validator.jsp" %>
    <link rel="stylesheet" href="<%=request.getContextPath() %>/resource/zTree3.1/css/zTreeStyle/zTreeStyle.css"
          type="text/css">
    <script type="text/javascript"
            src="<%=request.getContextPath()%>/resource/My97DatePicker/WdatePicker.js"></script>
    <style type="text/css">
        .titleCss {
            background-color: #e6e6e6;
            border: solid 1px #e6e6e6;
            position: relative;
            margin: -1px 0 0 0;
            line-height: 32px;
            text-align: left;
        }

        .aCss {
            overflow: hidden;
            word-break: keep-all;
            white-space: nowrap;
            text-overflow: ellipsis;
            text-align: left;
            font-size: 12px;
        }

        .liCss {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            height: 30px;
            text-align: left;
            margin-left: 10px;
            margin-right: 10px;
        }
    </style>
</head>

<body>
<s:form action="store" namespace="/manage" method="post" theme="simple" id="form" name="form">
    <table class="table table-bordered">
        <tr>
            <td colspan="16">

                <s:a method="toAdd" cssClass="btn btn-success">
                    <i class="icon-plus-sign icon-white"></i> 添加
                </s:a>

                <button method="store!deletes.action" class="btn btn-danger"
                        onclick="return submitIDs(this,'确定删除选择的记录?');">
                    <i class="icon-remove-sign icon-white"></i> 删除
                </button>

                <div style="float: right;vertical-align: middle;bottom: 0px;top: 10px;">
                    <%@ include file="/manage/system/pager.jsp" %>
                </div>
            </td>
        </tr>
    </table>

    <table class="table table-bordered table-hover">
        <tr style="background-color: #dff0d8">
            <th width="20px"><input type="checkbox" id="firstCheckbox"/></th>
            <th width="100px">ID</th>
            <th>门店名称</th>
            <th>门店地址</th>
            <th>门店电话</th>
            <th>创建时间</th>
            <th width="60px;">操作</th>
        </tr>

        <s:iterator value="pager.list">
            <tr>
                <td><input type="checkbox" name="ids"
                           value="<s:property value="id"/>"/></td>
                <td><s:property value="id"/></td>
                <td><s:property value="name"/></td>
                <td><s:property value="address"/></td>
                <td><s:property value="telPhone"/></td>
                <td><s:date name="ctime" format="yyyy-MM-dd HH:mm:ss"/></td>
                <td><s:a href="store!toEdit.action?e.id=%{id}">编辑</s:a></td>
            </tr>
        </s:iterator>

        <tr>
            <td colspan="17" style="text-align: center;font-size: 12px;">
                <%@ include
                        file="/manage/system/pager.jsp" %>
            </td>
        </tr>
    </table>

</s:form>


</body>
</html>
